package com.itheima.stock.mapper;

import com.itheima.stock.entity.StockRtInfo;
import com.itheima.stock.entity.StockUpdownDomain;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDateTime;
import java.util.List;
import java.util.Map;

/**
 * @author zby
 * @description 针对表【stock_rt_info(个股详情信息表)】的数据库操作Mapper
 * @created 2024-06-17 20:58:15
 *  对应实体类 {@link StockRtInfo}
 */
@Mapper
public interface StockRtInfoMapper {

    /**
     * 沪深两市个股涨幅分时行情数据查询，以时间顺序和涨幅查询前10条数据
     * @param curDateTime 当前股票有效时间
     * @return
     */
    List<StockUpdownDomain> stockIncreaseLimit(@Param("curTime") LocalDateTime curDateTime);

    List<StockUpdownDomain> stockAll();


    List<Map> upDownCount(@Param("curTime") LocalDateTime curTime, @Param("openTime") LocalDateTime openTime, @Param("flag") Integer i);
}




